package com.demo.user.scanpackage.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.demo.user.scanpackage.dao.UserDAO;


@Service("userService")
public class UserServiceImpl implements UserService {
	
	@Autowired
	private UserDAO dao;
	
	public UserServiceImpl() {
		System.out.println("service-instance");
	}
	
	/* (non-Javadoc)
	 * @see com.demo.user.service.UserService#saveUser()
	 */
	@Override
	public void saveUser() {
		dao.addUser();
	}
}
